package dy.com.part1.chapter1;

public class TicketWindow extends Thread{
     private final String name;
     private final int Max =200;
     private static int index=1;

    public TicketWindow(String name) {

        this.name = name;
    }

    @Override
    public void run() {
        while(index<Max){
            System.out.println(this.name+"叫到第"+(index++)+"个号了");



        }
    }
}
